home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / mac / Technical Documentation / Develop / develop Issue 29 / develop Issue 29 code / Newton Web Server / nHTTPd ƒ / Private Definitions < prev    next >
Encoding:
Text File  |  1996-10-20  |  1.6 KB  |  58 lines  |  [TEXT/NTP1]

  1. /*
  2.  © 1996 Ray Rischpater
  3.  All Rights Reserved.
  4.  dove@lothlorien.com
  5.  This program is free software; you can redistribute it and/or
  6.  modify it under the terms of the GNU General Public License 
  7.  as published by the Free Software Foundation; either 
  8.  version 2 of the License, or (at your option) any later 
  9.  version.
  10.  
  11.  This program is distributed in the hope that it will be useful,
  12.  but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14.  GNU General Public License for more details.
  15.  You should have received a copy of the GNU General Public 
  16.  License along with this program; if not, write to the Free 
  17.  Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, 
  18.  USA. 
  19.  
  20. */
  21.     
  22. OpenResFile("Resources");
  23. DefineGlobalConstant('kAppIcon, GetPictAsBits("Icon", nil));
  24. CloseResFile();
  25.  
  26. DefineGlobalConstant('kGetIPAddressOption,
  27.     {
  28.         label: "iprf",
  29.         type: 'option,
  30.         opCode: opGetCurrent,
  31.         data:
  32.         {
  33.             argList:
  34.             [
  35.                 [0,0,0,0],    // local
  36.                 [0,0,0,0],    // gateway
  37.             ],
  38.             typeList:
  39.             [
  40.                 'struct,
  41.                 ['array, 'byte, 4],
  42.                 ['array, 'byte, 4],
  43.             ],
  44.         },
  45.     });
  46.  
  47. DefineGlobalConstant('kGenericHTTPFileErrorString,
  48.     "<H1>File not found</H1>" & unicodeLF & 
  49.     "The document you requested could not be found on this server.");
  50.     
  51. DefineGlobalConstant('kGenericHTTPProtoErrorString,
  52.     "<H1>Invalid Request</H1>" & unicodeLF & 
  53.     "This server only supports the <TT>GET</TT> command.");
  54.     
  55. DefineGlobalConstant('kGenericHTTPTransErrorString,
  56.     "<H1>File not found</H1>" & unicodeLF & 
  57.     "The document you requested could not be found on this server due to a translator error.");
  58.